﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GiveAQuiz.Data;

namespace GiveAQuizSite.Controllers
{
  public abstract class BaseController : Controller
  {
    private readonly IQuizRepository _repository;

    protected BaseController(IQuizRepository repository)
    {
      _repository = repository;
    }

    public IQuizRepository Repository
    {
      get { return _repository; }
    }
  }
}
